package com.hu.common.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 系统日志表
 * </p>
 *
 * @author hu
 * @since 2023-09-16
 */
@Getter
@Setter
  @TableName("sys_log")
@ApiModel(value = "Log对象", description = "系统日志表")
public class SysLog implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("ID")
        @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("日志类型")
      private String logType;

      @ApiModelProperty("创建用户编码")
      private String createUserCode;

      @ApiModelProperty("创建用户名称")
      private String createUserName;

      @ApiModelProperty("创建时间")
      private String createDate;

      @ApiModelProperty("请求URI")
      private String requestUrl;

      @ApiModelProperty("请求方式")
      private String requestMethod;

      @ApiModelProperty("请求参数")
      private String requestParams;

      @ApiModelProperty("请求IP")
      private String requestIp;

      @ApiModelProperty("请求服务器地址")
      private String serverAddress;

      @ApiModelProperty("是否异常")
      private String isException;

      @ApiModelProperty("异常信息")
      private String exceptionInfo;

      @ApiModelProperty("用户代理")
      private String userAgent;

      @ApiModelProperty("操作系统")
      private String deviceName;

      @ApiModelProperty("浏览器名称")
      private String browserName;

      @ApiModelProperty("成功信息")
      private String successInfo;

      @ApiModelProperty("用户头像")
      private String authorAvatar;
}
